build: Find grub2-mkconfig a bit more automagically
authorColin Walters <walters@verbum.org>
Wed, 6 Apr 2016 18:22:19 +0000 (14:22 -0400)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Wed, 6 Apr 2016 21:16:11 +0000 (21:16 +0000)
commite9640ca4d91fffa899f7a7ba14bae798215fb6a6
treeebbf94ffbe216d5739081ef5175b9599ed0ba3ab
parentace0d4650b097b8d3fb04cc729715a92f6db7dee
build: Find grub2-mkconfig a bit more automagically

If one happens to not have grub2 installed, the previous commit
would cause us to fall back to `grub-mkconfig` with bad results.

We should likely just do dynamic detection and avoid pain, but
there's no harm in also allowing this to be statically determined.

The automagic here is that if `/etc/os-release` says `ID_LIKE=fedora`,
we know to use `grub2-mkconfig`.  But distro scripts should set this
in the build configurations using `--with-grub2-mkconfig=`.

Closes: #240
Approved by: jlebon
configure.ac